package cn.xshi.sys.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
/**
 * @Desc 短消息查询参数
 * @Author 邓纯杰
 * @CreateTime 2024-06-21 10:24:12
 */
@Data
@ApiModel(value="短消息查询参数", description="短消息查询参数")
public class SysMessageForm{

	@ApiModelProperty(value = "发送者编号")
	private String fromId;/**发送者编号**/

	@ApiModelProperty(value = "接收者编号")
	@NotEmpty(message = "接收者不能为空")
	@NotNull(message = "接收者不能为空")
	private String toId;/**接收者编号**/

	@ApiModelProperty(value = "送发内容")
	@Size(min=1 ,max= 500 ,message = "聊天内容字数必须在1-500之内")
	private String content;/**送发内容**/

	@ApiModelProperty(value = "是否已读0未读1已读")
	private Integer isRead;/**是否已读0未读1已读**/

	@ApiModelProperty(value = "发送者")
	private String fromName;/**发送者**/

	@ApiModelProperty(value = "接收者")
	private String toName;/**接收者**/

	@ApiModelProperty(value = "创建时间开始")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTimeSt;/**创建时间**/

	@ApiModelProperty(value = "创建时间结束")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTimeEt;/**创建时间**/

	@ApiModelProperty(value = "已读时间开始")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date readTimeSt;/**创建时间**/

	@ApiModelProperty(value = "已读时间结束")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date readTimeEt;/**创建时间**/

	@ApiModelProperty(value = "类型")
	private Integer type;/**类型**/
}